package com.guli.edu.client;

import com.guli.commonUtils.vo.CourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zxc
 * @date 2023/04/26 15:14
 **/
@Component
// 远程调用的微服务模块，以及调用失败后所回调的方法;
@FeignClient(value = "service-edu" , fallback = EduFeignClient.class)
public interface EduClient {
    // 根据课程id，来获取课程基本信息;
    @GetMapping("/eduService/course/getBasicCourseInfo/{courseId}")
    public CourseVo getBasicCourseInfo(@PathVariable("courseId") String courseId);
}
